import request from '@/util/request'

const timeout = 60 * 1000

export function listSensorHardwareConfig(data) {
  return request({
    url: '/iot/device/sensor/hardware/config/list',
    method: 'post',
    data
  })
}

export function deleteSensorHardwareConfigToDevice(data) {
  return request({
    url: '/iot/device/sensor/hardware/config/deleteToDevice',
    method: 'post',
    timeout: timeout,
    data
  })
}

export function insertOrUpdateSensorHardwareConfigToDevice(data) {
  return request({
    url: '/iot/device/sensor/hardware/config/insertOrUpdateToDevice',
    method: 'post',
    timeout: timeout,
    data
  })
}

